package com.hb.common.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 课程
 * @TableName edu_chapter
 */
@TableName(value ="edu_chapter")
public class EduChapter implements Serializable {
    /**
     * 章节ID
     */
    @TableId
    private String id;

    /**
     * 课程ID
     */
    private String courseId;

    /**
     * 章节名称
     */
    private String title;

    /**
     * 显示排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date eduCreate;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date eduModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<EduVideo> videos;

    /**
     * 章节ID
     */
    public String getId() {
        return id;
    }

    /**
     * 章节ID
     */
    public void setId(String id) {
        this.id = id;
    }

    public List<EduVideo> getVideos() {
        return videos;
    }

    public void setVideos(List<EduVideo> videos) {
        this.videos = videos;
    }

    /**
     * 课程ID
     */
    public String getCourseId() {
        return courseId;
    }


    /**
     * 课程ID
     */
    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    /**
     * 章节名称
     */
    public String getTitle() {
        return title;
    }

    /**
     * 章节名称
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 显示排序
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 显示排序
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * 创建时间
     */
    public Date getEduCreate() {
        return eduCreate;
    }

    /**
     * 创建时间
     */
    public void setEduCreate(Date eduCreate) {
        this.eduCreate = eduCreate;
    }

    /**
     * 更新时间
     */
    public Date getEduModified() {
        return eduModified;
    }

    /**
     * 更新时间
     */
    public void setEduModified(Date eduModified) {
        this.eduModified = eduModified;
    }
}
